package com.abhinav.designPatterns.memento;

/*
 *  Memento interface to CalculatorOperator (Caretaker)
 */
public class Caretaker {
	public static void main(String[] args) {
		Editor editor = new Editor();
		editor.setState("Original State");
		
		EditorMemento memento = editor.save();
		System.out.println(memento.getSavedState());
	}

}
